package com.gec.req;

import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class DocSaveReq {
    private int id;
    @NotNull(message = "【电子书】不能为空")
    private long ebook_id;//电子书id
    @NotNull(message = "【父文档】不能为空")
    private long parent;//父id
    @NotNull(message = "【名称】不能为空")
    private String name;//名称
    @NotNull(message = "【排序】不能为空")
    private int sort;//顺序
    private int view_count;//阅读数
    private int vote_count;//点赞数

    @NotNull(message = "【内容】不能为空")
    private String content; //名称
}